import type { RouteRecordRaw } from 'vue-router'

function AppLayout() {
  return import('@/layouts/app.vue')
}

const routes: RouteRecordRaw = {
  path: '/app',
  redirect: '/app/index',
  component: AppLayout,
  children: [
    {
      path: 'index',
      component: () => import('@/views/app/index.vue'),
      meta: {
        title: '应用首页',
      },
    },
  ],
}

export default routes
